// Copyright (c) Appeon. All rights reserved.
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. 
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.

namespace SnapObjects.Data
{
    /// <summary>
    ///     The strategy of how to create the WHERE clause when the SQL UPDATE statement is generated.
    /// </summary>
    public enum UpdateWhereStrategy
    {
        /// <summary>
        ///     Uses the primary key only.
        /// </summary>
        KeyColumns = 0,

        /// <summary>
        ///     Uses the primary key and the properties which have applied the ConcurrencyCheck attribute.
        /// </summary>
        KeyAndConcurrencyCheckColumns = 1,

        /// <summary>
        ///     Uses the primary key and the modified properties.
        /// </summary>
        KeyAndModifiedColumns = 2
    }
}
